package com.fzrskj.cloud.free.core.enums;

/**
 * MessageSendWayEnum.
 *
 * @author zj.
 *         Created on 2018/12/17 0017.
 */
public enum  MessageSendWayEnum {
    /**
     * 邮件.
     */
    MAIL("mail"),
    SMS("sms"),
    /**
     * 手机.
     */
    MOBILE("mobile");

    /**
     * 值.
     */
    private String way;

    /**
     * 消息发送方式.
     * @param way 值.
     */
    MessageSendWayEnum(String way) {
        this.way = way;
    }

    /**
     * 是否等于.
     * @param comparisonWay comparison way.
     * @return Boolean.
     */
    public Boolean equals(String comparisonWay) {
        return this.way.equals(comparisonWay);
    }
}
